package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author du
 * date 2018/7/29 下午1:51
 */
public class MyTestMessageResult extends ListDataEntity implements Parcelable {
    private List<MyTestMessageEntity> list;

    public List<MyTestMessageEntity> getList() { return list;}

    public void setList(List<MyTestMessageEntity> list) { this.list = list;}

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeTypedList(this.list);
    }

    public MyTestMessageResult() {}

    protected MyTestMessageResult(Parcel in) {
        super(in);
        this.list = in.createTypedArrayList(MyTestMessageEntity.CREATOR);
    }

    public static final Creator<MyTestMessageResult> CREATOR = new Creator<MyTestMessageResult>() {
        @Override
        public MyTestMessageResult createFromParcel(Parcel source) {return new MyTestMessageResult(source);}

        @Override
        public MyTestMessageResult[] newArray(int size) {return new MyTestMessageResult[size];}
    };

    public static class MyTestMessageEntity implements Parcelable{
        /**
         * id : 13
         * rtitle : 真假逻辑测试卷A
         * posttime : 1483713424
         * content : <p>第三题有问题，只有AB两个人的话，缺少C的话。</p>
         * answer_teacher_id : 7
         * answer_posttime : 1483714561
         * answer_content : <p>这个题目其实也是存在之前练习题里存在的矛盾，但是，不考虑那个矛盾的话，这个题目是没有问题的，要再好好思考一下题目里边的逻辑哦o(^▽^)o</p><p>如果仔细思考时候还是不明白的话，可以再留言，我再来告诉你分析这个题目的方法</p>
         * status : 2
         */

        private String id;
        private String rtitle;
        private String posttime;
        private String content;
        private String answer_teacher_id;
        private String answer_posttime;
        private String answer_content;
        private String status;

        public String getId() { return id;}

        public void setId(String id) { this.id = id;}

        public String getRtitle() { return rtitle;}

        public void setRtitle(String rtitle) { this.rtitle = rtitle;}

        public String getPosttime() { return posttime;}

        public void setPosttime(String posttime) { this.posttime = posttime;}

        public String getContent() { return content;}

        public void setContent(String content) { this.content = content;}

        public String getAnswer_teacher_id() { return answer_teacher_id;}

        public void setAnswer_teacher_id(String answer_teacher_id) { this.answer_teacher_id = answer_teacher_id;}

        public String getAnswer_posttime() { return answer_posttime;}

        public void setAnswer_posttime(String answer_posttime) { this.answer_posttime = answer_posttime;}

        public String getAnswer_content() { return answer_content;}

        public void setAnswer_content(String answer_content) { this.answer_content = answer_content;}

        public String getStatus() { return status;}

        public void setStatus(String status) { this.status = status;}

        @Override
        public int describeContents() { return 0; }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.rtitle);
            dest.writeString(this.posttime);
            dest.writeString(this.content);
            dest.writeString(this.answer_teacher_id);
            dest.writeString(this.answer_posttime);
            dest.writeString(this.answer_content);
            dest.writeString(this.status);
        }

        public MyTestMessageEntity() {}

        protected MyTestMessageEntity(Parcel in) {
            this.id = in.readString();
            this.rtitle = in.readString();
            this.posttime = in.readString();
            this.content = in.readString();
            this.answer_teacher_id = in.readString();
            this.answer_posttime = in.readString();
            this.answer_content = in.readString();
            this.status = in.readString();
        }

        public static final Creator<MyTestMessageEntity> CREATOR = new Creator<MyTestMessageEntity>() {
            @Override
            public MyTestMessageEntity createFromParcel(Parcel source) {return new MyTestMessageEntity(source);}

            @Override
            public MyTestMessageEntity[] newArray(int size) {return new MyTestMessageEntity[size];}
        };
    }

}
